﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace Noc.Pomodoro.Controls
{
    /// <summary>
    /// Interaction logic for DigitalClockControl.xaml
    /// </summary>
    public partial class DigitalClockControl : UserControl
    {
        /// <summary>
        /// Backing store for Interval.
        /// </summary>
        public static DependencyProperty TimeProperty = DependencyProperty.Register("Time", typeof(TimeSpan), typeof(DigitalClockControl), new PropertyMetadata(new TimeSpan()));

        public DigitalClockControl()
        {
            InitializeComponent();
        }

        public TimeSpan Time
        {
            get { return (TimeSpan)GetValue(TimeProperty); }
            set { SetValue(TimeProperty, value); }
        }
    }
}